/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package controller.database;

import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Shengyi_Chen
 */
@Stateless
public class PodFacade extends AbstractFacade<Pod> {
    @PersistenceContext(unitName = "va-big-sitePU")
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public PodFacade() {
        super(Pod.class);
    }
    
    public List<Pod> getPod(){
        return em.createNamedQuery("Pod.findAll").getResultList();
    }
    
}
